package com.nd.controller.wx;

import com.nd.pojo.vo.wx.AddressDetailVo;
import com.nd.pojo.vo.wx.BaseRespWXVo;
import com.nd.service.AdressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author : PengFei Zhang
 * @Data :2021/6/7  22:15
 * @Description :
 */
//收货地址    zpf
@RestController
@RequestMapping("wx")
public class AdressController {
    @Autowired
    AdressService adressService;

   //收货地址详细信息
    @RequestMapping("address/detail")
    public BaseRespWXVo addressDetail(Integer id){
      AddressDetailVo addressDetailVo= adressService. addressDetail(id);
      return BaseRespWXVo.ok(addressDetailVo);
    }
}
